﻿using System;
using Xomega.Framework;
using Xomega.Framework.Services;

namespace AdventureWorks.Entities
{
    public partial class Employee : IValidatable
    {
        public object[] KeyParams()
        {
            if (EntityKey.IsTemporary) return new string[] {Resources.NEW, ""};
            else return new string[] {"", " " + EmployeeId};
        }

        public void Validate(bool force)
        {
            //ErrorList.Current.AddError("EMP_GUID_REQ", KeyParams());
        }
    }
}